<?php
/**
 * CreateTime: 2023/12/28 17:23
 * User:LinQ
 */

namespace Database\Seeders\Database;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class DataMappingSeeder  extends Seeder
{
    public function run()
    {
        $isExists = DB::table('data_mapping')->select('data_mapping_id')->first();
        if(!$isExists){
            DB::table('data_mapping')->insert(
                [
                    [
                        'parent_id' =>0,
                        'com_id' => 1,
                        'owner_id' => 1,
                        'code' => 'WH_STATUS',
                        'value' => 1,
                        'key' => '外呼状态',
                        'created_at' => date("Y-m-d h:i:s"),
                        'updated_at' => date("Y-m-d h:i:s"),
                    ],
                ]
            );
        }
    }
}